package com.wxb.cardmis.repository;

import com.wxb.cardmis.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * All rights Reserved, Designed By www.super-master.cn
 *
 * @ProjectName: cardmis
 * @Package: com.wxb.cardmis.repository
 * @ClassName: UserRepository
 * <p> </p>
 * @Author: [Wei Xiao]
 * @Date: 2022/2/21 17:28
 * @Version: V1.0
 * @Copyright: 2022  com.wei All rights reserved.
 * TODO: 注意,本文件Wei Xiao所作,如果转载或使用请标明具体出处!
 * @Date: 2022年02月21日 17:28
 * @Description: []
 **/
public interface UserRepository extends JpaRepository<UserEntity,Integer> {
    /**
     * 查询用户名是否存在
     * @param uname
     * @return
     */
    public UserEntity findByUname(String uname);

    /**
     * 登录
     * @param uname
     * @param upwd
     * @return
     */
    public UserEntity findByUnameAndUpwd(String uname,String upwd);

}
